package com.ht.medicaltreatment.bean

import android.os.Parcel
import android.os.Parcelable

data class YangBenJieShouBean(
    val ReSample: String,//不等空时，提示"已有表单包含此样本
    val bloodRoomList: List<BloodRoom>,//采血地点
    val bloodSource: String,//血样类型
    val deliveryCondition: String,//配送条件
    val drawBloodPlace: String,//采血地点
    val receivingPlace: String,//接收地点
    //大于0 时，提示 "包含空标签，空标签数量:"+emptyTagCount ；不展示样本的列表
    val emptyTagCount: Int,
    val rfidSampleList: MutableList<YangBenJieShouBeanRfidSample>,
    //是否为同一个项目的样本(true:同一项目;false:不同的项目)，如果为false 应提示 “扫描到的样本不在同一项目中!”，不展示样本的列表
    val sameProject: Boolean,
    val stadingtime: String,
    val isOrNotStandingTime: Int,// 0不展示静止时间，1展示静止时间
)

data class YangBenJieShouBeanRfidSample(
   /* val anticoagulationType: Any,
    val barCode: Any,
    val bloodSpecification: Any,
    val bloodType: Any,
    val checkType: Any,
    val codePath: Any,
    val color: Any,
    val expectedReturnDate: Any,
    val expireDate: Any,
    val expireWarningDate: Any,*/
    /*
    val inputTime: Any,
    val inputUserId: Int,
    val inputUserName: Any,
    val isExist: Int,
    val isTransport: Int,
    val loanCount: Int,
    val loanRemarks: Any,
    val loanTime: Any,
    val loanUserName: Any,*/
    val id: Int,
    val name: String?,
    val rfidCode: String?,
    val samplingTime: String?,//采样时间
    val standingTime: String? //静止时间
 /*   val overdueReturnRemarks: Any,
    val project: Any,
    val projectId: Int,
    val reason: Any,
    val remarks: Any,
    val returnPerson: Any,
    val returnRemarks: Any,
    val returnTime: Any,
    val returnWarningDate: Any,
    val rfidSampleBox: Any,
    val rfidType: Any,
    val sampleCategoryDict: Any,
    val sampleCentralLaboratoryNumber: Any,
    val sampleMatrix: Any,
    val sampleSource: Any,
    val sampleStru: Any,
    val sampleStudy: Any,
    val sampleSubject: Any,
    val sampleTime: Any,
    val sampleTreatment: Any,
    val samplingDate: Any,
    val sghyMarshallId: Int,
    val sghySampleType: Int,
    val signDrawBlood: Int,
    val signature: Any,
    val status: Int,
    val stockNum: Any,
    val studyDay: Any,
    val takeLeave: Any,
    val time: Any,
    val warningDays: Int,
    val watsonId: Any*/
) : Parcelable {
    constructor(parcel: Parcel) : this(
        parcel.readInt(),
        parcel.readString(),
        parcel.readString(),
        parcel.readString(),
        parcel.readString()
    ) {
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeInt(id)
        parcel.writeString(name)
        parcel.writeString(rfidCode)
        parcel.writeString(samplingTime)
        parcel.writeString(standingTime)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<YangBenJieShouBeanRfidSample> {
        override fun createFromParcel(parcel: Parcel): YangBenJieShouBeanRfidSample {
            return YangBenJieShouBeanRfidSample(parcel)
        }

        override fun newArray(size: Int): Array<YangBenJieShouBeanRfidSample?> {
            return arrayOfNulls(size)
        }
    }
}

data class BloodRoom(
    val createTime: String,
    val id: Int,
    val name: String,
    val reason: Any,
    val remarks: Any,
    val signature: Any,
    val user: Any,
    val userId: Int
)